import React, { Component } from 'react';
//导入路由组建
import { HashRouter, Route } from 'react-router-dom'
// 热重载
import { hot } from 'react-hot-loader'

// 导入Home组件
import Home from './pages/home/Home'
import City from './pages/city/City'

class App extends Component {
  render() {
    return (
      	<HashRouter>
          <div style={{position: 'absolute', top: 0, bottom: 0, left: 0, right: 0}}>
            <Route exact path="/" component={Home} ></Route>
            <Route path="/city" component={City} ></Route>
          </div>
      	</HashRouter>
    );
  }
}

export default process.env.NODE_ENV === "development" ? hot(module)(App) : App;
